package com.tianxiabuyi.model.pojo;
import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 病人绑定医院系统的账号
 * @author txby
 *
 */
@Entity
@Table(name = "user_account")
public class UserAccount extends TXBYObject {
	private Integer uid;										// 用户id
	private Integer pid;										// 用户文件夹id
	@Column(name = "patient_id")@JSONField(name = "patient_id")
	private String patientId;									
	@Column(name = "in_number")@JSONField(name = "in_number")
	private String inNumber;									// 住院号
	@Column(name = "clinic_number")@JSONField(name = "clinic_number")
	private String clinicNumber;								// 门诊号
	private String source;										// 来源
	@Column(name = "union_id")@JSONField(name = "union_id")
	private String unionId;										// 唯一的第三方id
	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}

	public String getInNumber() {
		return inNumber;
	}

	public void setInNumber(String inNumber) {
		this.inNumber = inNumber;
	}

	public String getClinicNumber() {
		return clinicNumber;
	}

	public void setClinicNumber(String clinicNumber) {
		this.clinicNumber = clinicNumber;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}
}
